import {Instance} from "../utils/AxiosUtils";
import {MongoSelect} from "../utils/types/MongoSelect";
import {GameTemp} from "../utils/types/Game";

export const GetGameInfoAll = () => Instance.get("/game/infoAll")
export const GameInfoByName = (data: MongoSelect) => Instance.post("/game/infoByName", data)
export const GameInfoById = (data: MongoSelect) => Instance.post("/game/infoById", data,)
export const GameInfoByTags = (data: MongoSelect) => Instance.post("/game/infoByTags", data,)
export const GameInfoByType = (data: MongoSelect) => Instance.post("/game/infoByType", data,)
export const TestJwt = () => Instance.post("/jwt")
export const GameUpdateById = (data: GameTemp) => Instance.post("/admin/updateGameObj",data)
